import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from '@/router/index.js';
import VueDND from 'awe-dnd';								// 引入拖动排序
import http from "./uitls/http"
import moment from 'moment'
import store from '@/store'
import VueQriously from 'vue-qriously'
import VueClipboard from 'vue-clipboard2'


import axios from './api/api';

import api from './api/index.js';
import echarts from 'echarts';
Vue.prototype.$echarts = echarts;
Vue.prototype.$api = api;
Vue.prototype.$http = http;
Vue.prototype.$axios = axios;


// import { Select } from 'ant-design-vue';
// import 'ant-design-vue/lib/select/style/css';
// Vue.use(Select);

Vue.config.productionTip = false;
Vue.use(VueQriously);
Vue.use(VueClipboard);
Vue.use(ElementUI);
Vue.use(VueDND);
Vue.prototype.$moment = moment;//间戳转换时间格式
//时间戳转换时间格式
Vue.filter('dateformat', function(dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
  return moment(dataStr*1000).format(pattern)
})

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
